package cn.qn.repository.sys;

import cn.qn.moudle.sys.City;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther: Bryant
 * @Date: 2018/6/9
 * @Description: 城市
 */
@Repository
public interface CityRepository extends JpaRepository<City,String> {

    /**
     * 通过城市编码查找城市信息
     * @param code
     * @return
     */
    City findCityByCode(String code);

    List<City> findByProvinceCode(String provinceCode);

    City findCityByNameContaining(String cityName);
}

